 
***********************************************************
** REPLICATION FILE FOR MEETINGS ANALYSIS FOR
** LIBGOBER AND CARPENTER, "LAWYERS AS LOBBYISTS"
***********************************************************
 
** make sure outreg2 is loaded, ssc inst outreg2
** make sure that your working directory is set
** Examples:
** cd "~/Dropbox/Collaborations/Lawyers As Lobbyists/ReplicationFolder/"
** cd "~/Dropbox/Lawyers As Lobbyists/ReplicationFolder/"
clear
use "./Data/FedMeetings_STATAraw.dta"
 
encode(date), gen(datenum)
encode(phase), gen(phasenum)
 
***********************************************************
* Command sequence for generating orgs as law firms *
***********************************************************
 
gen organization_LLP = strpos(organization, "LLP") > 0
gen organization_LLC = strpos(organization, "LLC") > 0
gen organization_SullCrom = strpos(organization, "Sullivan") > 0
gen organization_ClearyGottlieb = strpos(organization, "Gottlieb") > 0
gen organization_PerkinsCole = strpos(organization, "Perkins") > 0
gen organization_ArnoldPorter = strpos(organization, "Arnord & Porter") > 0
gen organization_BuckleySandler = strpos(organization, "BuckleySandler") > 0
gen organization_WhiteCase = strpos(organization, "White & Case") > 0
gen organization_Balto = strpos(organization, "Balto") > 0
gen organization_PeterBarash = strpos(organization, "Barash") > 0
gen organization_CovBurl = strpos(organization, "Covington") > 0
gen organization_DavisPolk = strpos(organization, "Polk") > 0
gen organization_WilmerHale = strpos(organization, "Wilmer") > 0
gen organization_GibsonDunnCrutcher = strpos(organization, "Gibson") > 0
gen organization_SchiffHarden = strpos(organization, "Schiff") > 0
gen organization_BoseMcKinney = strpos(organization, "McKinney") > 0
gen organization_GallagherCallahan = strpos(organization, "Gallagher") > 0
gen organization_Porterfield = strpos(organization, "Porterfield") > 0
gen organization_Cadwalader = strpos(organization, "Cadwalader") > 0
gen organization_Tullet = strpos(organization, "White & Case") > 0
gen organization_WeilGotshalManges = strpos(organization, "Gotshal") > 0
gen organization_SandlerONeill = strpos(organization, "Sandler") > 0
gen organization_FierceIsakowitz = strpos(organization, "Isakowitz") > 0
gen organization_SteptoeJohnson = strpos(organization, "Steptoe") > 0
gen organization_BrevanHoward = strpos(organization, "Brevan") > 0
gen organization_PaulHastings = strpos(organization, "Hastings") > 0
gen organization_DebevoisePlimpton = strpos(organization, "Debevoise") > 0
gen organization_SkaddenArps = strpos(organization, "Skadden") > 0
gen organization_AlstonBird = strpos(organization, "Alston") > 0
gen organization_EdgarDunn = strpos(organization, "Edgar") > 0
gen organization_GoodwinProctor = strpos(organization, "GoodwinProctor") > 0
gen organization_WinstonProctor= strpos(organization, "winston") > 0
gen organization_DodgeCox = strpos(organization, "Dodge & Cox") > 0
gen organization_LockeLord = strpos(organization, "Locke") > 0
gen organization_Clifford = strpos(organization, "Clifford") > 0
gen organization_SpidiFisch = strpos(organization, "Spidi") > 0
gen organization_TraversSmith = strpos(organization, "Travers") > 0
gen organization_McGuireWoods = strpos(organization, "McGuire") > 0
gen organization_StinsonLeonard = strpos(organization, "Stinson") > 0
gen organization_Kilpatricktownshend = strpos(organization, "Kilpatrick") > 0
gen organization_PattonBoggs = strpos(organization, "Boggs") > 0
gen organization_ConstantineCannon = strpos(organization, "Constantine") > 0
gen organization_LuseGortman = strpos(organization, "Pomerink") > 0
gen organization_BrownBrothers = strpos(organization, "Harriman") > 0
gen organization_Dechert= strpos(organization, "Dechert") > 0
gen organization_Polsinelli = strpos(organization, "Polsinelli") > 0
gen organization_Tomotsune = strpos(organization, "Tomotsune") > 0
gen organization_MayerBrown = strpos(organization, "Mayer") > 0
gen organization_SidleyAustin = strpos(organization, "Sidley") > 0
gen organization_MorrisonFoerster = strpos(organization, "Foerster") > 0
gen organization_KriegDeVault = strpos(organization, "Krieg") > 0
gen organization_FennimoreKay = strpos(organization, "Fennimore") > 0
gen organization_WachtellLipton = strpos(organization, "Wachtell") > 0
gen organization_WombleCarlyle = strpos(organization, "Womble") > 0
gen organization_OliverWyman = strpos(organization, "Wyman") > 0
gen organization_BairdHolm = strpos(organization, "Baird") > 0
gen organization_DavisHarman = strpos(organization, "Harman") > 0
gen organization_HoganLovells = strpos(organization, "Lovells") > 0
gen organization_ChapmanCutler = strpos(organization, "Cutler") > 0
gen organization_KearnyMHC = strpos(organization, "Kearny") > 0
gen organization_AllenOvery = strpos(organization, "Overy") > 0
gen organization_NappiHoppe = strpos(organization, "Nappi") > 0
gen organization_BarnettSivonNatter = strpos(organization, "Barnett") > 0
gen organization_Nishimura = strpos(organization, "Nishimura") > 0
gen organization_HayesBoone = strpos(organization, "Hayes") > 0
gen organization_ArmstrongTeasdale = strpos(organization, "Armstrong") > 0
gen organization_ShearmanSterling = strpos(organization, "Shearman") > 0
gen organization_Schwartz= strpos(organization, "Schwartz") > 0
gen organization_JanneyMontgomery = strpos(organization, "Janney") > 0
gen organization_FoleyLardner = strpos(organization, "Foley") > 0
gen organization_RobinsKaplan= strpos(organization, "Ciresi") > 0
gen organization_FoglerRubinoff = strpos(organization, "Fogler") > 0
 
gen participant_Tarullo = strpos(surname, "Tarullo") > 0
gen participant_JeremyCStein = strpos(individual, "Jeremy C. Stein") > 0
gen participant_JeremyStein = strpos(individual, "Jeremy Stein") > 0
gen participant_StanleyFischer = strpos(individual, "Stanley Fischer") > 0
gen participant_LaelBrainard = strpos(individual, "Brainard") > 0
gen participant_RandallQuarles = strpos(individual, "Quarles") > 0
gen organization_FRB = strpos(organization, "Federal Reserve Board") > 0
gen participant_Raskin = strpos(individual, "Bloom Raskin") > 0
gen participant_JeromePowell = strpos(individual, "Jerome Powell") > 0
gen participant_JeromeHPowell = strpos(individual, "Jerome H. Powell") > 0
 
gen organization_BankersAssociation = strpos(organization, "Bankers Association") > 0
gen organization_FRBank = strpos(organization, "Federal Reserve Bank") > 0
gen organization_Bank = strpos(organization, "Bank") > 0
gen organization_ClearingHouse = strpos(organization, "Clearing House") > 0
gen organization_Association = strpos(organization, "Association") > 0
gen organization_Bankers = strpos(organization, "Bankers") > 0
gen organization_GoldmanSachs = strpos(organization, "Goldman Sachs") > 0
gen organization_JPMorgan = strpos(organization, "JP Morgan") > 0
gen organization_WellsFargo = strpos(organization, "WellsFargo") > 0
gen organization_Barclay = strpos(organization, "Barclay") > 0
gen organization_StateStreet = strpos(organization, "State Street") > 0
gen organization_Prudential = strpos(organization, "Prudential") > 0
gen organization_FAC = strpos(organization, "Federal Advisory Council") > 0
gen organization_BOA = strpos(organization, "Bank of America") > 0
gen organization_SEC = strpos(organization, "Securities and Exchange") > 0
gen organization_CreditSuisse = strpos(organization, "Credit Suisse") > 0
gen organization_OCC = strpos(organization, "Comptroller") > 0
gen organization_CapitalOne = strpos(organization, "Capital One") > 0
gen organization_MorganStanley = strpos(organization, "Morgan Stanley") > 0
gen organization_FHFA = strpos(organization, "Federal Housing") > 0
gen organization_BNYMellon = strpos(organization, "Bank of New York Mellon") > 0
gen organization_FifthThird = strpos(organization, "Fifth Third Bank") > 0
gen organization_Citigroup = strpos(organization, "Citigroup") > 0
gen organization_MetLife = strpos(organization, "MetLife") > 0
gen organization_HSBC = strpos(organization, "HSBC") > 0
gen organization_TorontoDominion = strpos(organization, "Toronto") > 0
gen organization_SunTrust = strpos(organization, "SunTrust") > 0
gen organization_BBT = strpos(organization, "BB&T") > 0
gen organization_RBS = strpos(organization, "Royal Bank of Scotland") > 0
gen organization_BNPParibas = strpos(organization, "Paribas") > 0
gen organization_NatWest = strpos(organization, "NatWest") > 0
 
 
gen organization_BlackRock = strpos(organization, "BlackRock") > 0
 
gen organization_ABA = strpos(organization, "American Bankers") > 0
gen organization_SIFMA = strpos(organization, "SIFMA") > 0
 
 
gen participant_FRBGovernor = 0
replace participant_FRBGovernor = 1 if(participant_Tarullo == 1)
replace participant_FRBGovernor = 1 if(participant_JeremyCStein == 1)
replace participant_FRBGovernor = 1 if(participant_JeremyCStein == 1)
replace participant_FRBGovernor = 1 if(participant_JeremyStein == 1)
replace participant_FRBGovernor = 1 if(participant_StanleyFischer == 1)
replace participant_FRBGovernor = 1 if(participant_LaelBrainard == 1)
replace participant_FRBGovernor = 1 if(participant_RandallQuarles == 1)
replace participant_FRBGovernor = 1 if(participant_Raskin == 1)
replace participant_FRBGovernor = 1 if(participant_JeromePowell == 1)
replace participant_FRBGovernor = 1 if(participant_JeromeHPowell == 1)
 
 
gen participant_lawfirm = 0
replace participant_lawfirm = 1 if(organization_SullCrom == 1)
replace participant_lawfirm = 1 if(organization_ClearyGottlieb == 1)
replace participant_lawfirm = 1 if(organization_PerkinsCole == 1)
replace participant_lawfirm = 1 if(organization_ArnoldPorter == 1)
replace participant_lawfirm = 1 if(organization_BuckleySandler == 1)
replace participant_lawfirm = 1 if(organization_WhiteCase == 1)
replace participant_lawfirm = 1 if(organization_Balto == 1)
replace participant_lawfirm = 1 if(organization_PeterBarash == 1)
replace participant_lawfirm = 1 if(organization_CovBurl == 1)
replace participant_lawfirm = 1 if(organization_DavisPolk == 1)
replace participant_lawfirm = 1 if(organization_WilmerHale == 1)
replace participant_lawfirm = 1 if(organization_GibsonDunnCrutcher == 1)
replace participant_lawfirm = 1 if(organization_SchiffHarden == 1)
replace participant_lawfirm = 1 if(organization_BoseMcKinney == 1)
replace participant_lawfirm = 1 if(organization_GallagherCallahan == 1)
replace participant_lawfirm = 1 if(organization_Porterfield == 1)
replace participant_lawfirm = 1 if(organization_Cadwalader == 1)
replace participant_lawfirm = 1 if(organization_WeilGotshalManges == 1)
replace participant_lawfirm = 1 if(organization_FierceIsakowitz == 1)
replace participant_lawfirm = 1 if(organization_SteptoeJohnson == 1)
replace participant_lawfirm = 1 if(organization_PaulHastings == 1)
replace participant_lawfirm = 1 if(organization_DebevoisePlimpton == 1)
replace participant_lawfirm = 1 if(organization_SkaddenArps == 1)
replace participant_lawfirm = 1 if(organization_AlstonBird == 1)
replace participant_lawfirm = 1 if(organization_EdgarDunn == 1)
replace participant_lawfirm = 1 if(organization_GoodwinProctor == 1)
replace participant_lawfirm = 1 if(organization_WinstonProctor == 1)
replace participant_lawfirm = 1 if(organization_LockeLord == 1)
replace participant_lawfirm = 1 if(organization_Clifford == 1)
replace participant_lawfirm = 1 if(organization_SpidiFisch == 1)
replace participant_lawfirm = 1 if(organization_TraversSmith == 1)
replace participant_lawfirm = 1 if(organization_McGuireWoods == 1)
replace participant_lawfirm = 1 if(organization_StinsonLeonard == 1)
replace participant_lawfirm = 1 if(organization_Kilpatricktownshend == 1)
replace participant_lawfirm = 1 if(organization_PattonBoggs == 1)
replace participant_lawfirm = 1 if(organization_ConstantineCannon == 1)
replace participant_lawfirm = 1 if(organization_LuseGortman == 1)
replace participant_lawfirm = 1 if(organization_BrownBrothers == 1)
replace participant_lawfirm = 1 if(organization_Dechert == 1)
replace participant_lawfirm = 1 if(organization_Polsinelli == 1)
replace participant_lawfirm = 1 if(organization_Tomotsune == 1)
replace participant_lawfirm = 1 if(organization_MayerBrown == 1)
replace participant_lawfirm = 1 if(organization_SidleyAustin == 1)
replace participant_lawfirm = 1 if(organization_MorrisonFoerster == 1)
replace participant_lawfirm = 1 if(organization_KriegDeVault == 1)
replace participant_lawfirm = 1 if(organization_FennimoreKay == 1)
replace participant_lawfirm = 1 if(organization_WachtellLipton == 1)
replace participant_lawfirm = 1 if(organization_WombleCarlyle == 1)
replace participant_lawfirm = 1 if(organization_BairdHolm == 1)
replace participant_lawfirm = 1 if(organization_DavisHarman == 1)
replace participant_lawfirm = 1 if(organization_HoganLovells == 1)
replace participant_lawfirm = 1 if(organization_ChapmanCutler == 1)
replace participant_lawfirm = 1 if(organization_AllenOvery == 1)
replace participant_lawfirm = 1 if(organization_NappiHoppe == 1)
replace participant_lawfirm = 1 if(organization_BarnettSivonNatter == 1)
replace participant_lawfirm = 1 if(organization_Nishimura == 1)
replace participant_lawfirm = 1 if(organization_HayesBoone == 1)
replace participant_lawfirm = 1 if(organization_ArmstrongTeasdale == 1)
replace participant_lawfirm = 1 if(organization_ShearmanSterling == 1)
replace participant_lawfirm = 1 if(organization_Schwartz == 1)
replace participant_lawfirm = 1 if(organization_FoleyLardner == 1)
replace participant_lawfirm = 1 if(organization_RobinsKaplan == 1)
replace participant_lawfirm = 1 if(organization_FoglerRubinoff == 1)
 
gen organization_labor = strpos(organization, "labor") > 0
gen organization_AFLCIO = strpos(organization, "AFL-CIO") > 0
gen organization_AFL = strpos(organization, "AFL") > 0
gen organization_AFSCME = strpos(organization, "AFSCME") > 0
gen organization_SEIU = strpos(organization, "SEIU") > 0
gen organization_Demos = strpos(organization, "Demos") > 0
 
gen organization_BetterMarkets = strpos(organization, "Better") > 0
gen organization_Reform = strpos(organization, "Reform") > 0
gen organization_consumer = strpos(organization, "consumer") > 0
gen organization_PublicCitizen = strpos(organization, "Public Citizen") > 0
gen organization_Citizen = strpos(organization, "citizen") > 0
gen organization_Senator = strpos(organization, "Senator") > 0
gen organization_Representative = strpos(organization, "Representative") > 0
gen organization_Senate = strpos(organization, "Senate") > 0
gen organization_FAIR = strpos(organization, "FAIR Coalition") > 0
gen organization_CenterRespLend = strpos(organization, "Center for Responsible Lending") > 0
gen organization_NatFairHousAlly = strpos(organization, "Fair Housing") > 0
gen organization_Occupy = strpos(organization, "Occupy") > 0
gen organization_CenterExecComp = strpos(organization, "Executive Compensation") > 0
gen organization_AARP = strpos(organization, "Retired Persons") > 0
gen organization_PubMemFS = strpos(organization, "Public Members Association of the Foreign Service") > 0
 
gen participant_reform = 0
replace participant_reform = 1 if(organization_BetterMarkets == 1)
replace participant_reform = 1 if(organization_Reform == 1)
replace participant_reform = 1 if(organization_consumer == 1)
replace participant_reform = 1 if(organization_PublicCitizen == 1)
replace participant_reform = 1 if(organization_Citizen == 1)
replace participant_reform = 1 if(organization_Senator == 1)
replace participant_reform = 1 if(organization_Representative == 1)
replace participant_reform = 1 if(organization_Senate == 1)
replace participant_reform = 1 if(organization_FAIR == 1)
replace participant_reform = 1 if(organization_CenterRespLend == 1)
replace participant_reform = 1 if(organization_NatFairHousAlly == 1)
replace participant_reform = 1 if(organization_Occupy == 1)
replace participant_reform = 1 if(organization_CenterExecComp == 1)
replace participant_reform = 1 if(organization_AARP == 1)
replace participant_reform = 1 if(organization_PubMemFS == 1)
 
 
 
gen organization_University = strpos(organization, "University") > 0
gen organization_SchBusiness = strpos(organization, "School of Business") > 0
gen organization_Foundation = strpos(organization, "Foundation") > 0
gen organization_Brookings = strpos(organization, "Brookings") > 0
 
gen organization_ILDivBanking = strpos(organization, "IL Division of Banking") > 0
gen organization_MSDeptFinance = strpos(organization, "Mississippi Department") > 0
gen organization_StateInsuranceDepts = strpos(organization, "State Insurance Departments") > 0
gen organization_AssocAppraisalOffs = strpos(organization, "Association of Appraisal Regulatory Officials") > 0
gen organization_NatAssnInsComms = strpos(organization, "National Association of Insurance Commissioners") > 0
gen organization_NJDeptBankIns = strpos(organization, "New Jersey Department") > 0
gen organization_ConfStateBankSupers = strpos(organization, "State Bank Supervisors") > 0
gen organization_UTDeptFinInst = strpos(organization, "Utah Department of Financial Institutions") > 0
gen organization_DormAuthNY = strpos(organization, "Dormitory Authority") > 0
gen organization_GovtFinOffcAssn = strpos(organization, "Government Finance Officers Association") > 0
gen organization_StBdREAppraisersPA = strpos(organization, "State Board of Certified") > 0
gen organization_ILSecState = strpos(organization, "IL Secretary of State") > 0
gen organization_PAHousFinAgency = strpos(organization, "Pennsylvania Housing Finance Agency") > 0
gen organization_StBankDept = strpos(organization, "State Banking Department") > 0
gen organization_INDeptFinInst = strpos(organization, "IN Dept. of Financial Institutions") > 0
gen organization_CADeptFinInst = strpos(organization, "State of California Department of Financial Institutions") > 0
gen organization_CTstate = strpos(organization, "Connecticut") > 0
gen organization_stbankregs = strpos(organization, "State Banking Regulators") > 0
gen organization_Governor = strpos(organization, "Office of Governor") > 0
gen organization_VaBureauFin = strpos(organization, "Virginia Bureau of Financial Institutions") > 0
gen organization_MSHouse = strpos(organization, "Mississippi House") > 0
 
gen participant_stmungovt = 0
replace participant_stmungovt = 1 if(organization_ILDivBanking == 1)
replace participant_stmungovt = 1 if(organization_MSDeptFinance == 1)
replace participant_stmungovt = 1 if(organization_StateInsuranceDepts == 1)
replace participant_stmungovt = 1 if(organization_AssocAppraisalOffs == 1)
replace participant_stmungovt = 1 if(organization_NatAssnInsComms == 1)
replace participant_stmungovt = 1 if(organization_NJDeptBankIns == 1)
replace participant_stmungovt = 1 if(organization_ConfStateBankSupers == 1)
replace participant_stmungovt = 1 if(organization_UTDeptFinInst == 1)
replace participant_stmungovt = 1 if(organization_DormAuthNY == 1)
replace participant_stmungovt = 1 if(organization_GovtFinOffcAssn == 1)
replace participant_stmungovt = 1 if(organization_StBdREAppraisersPA == 1)
replace participant_stmungovt = 1 if(organization_ILSecState == 1)
replace participant_stmungovt = 1 if(organization_PAHousFinAgency == 1)
replace participant_stmungovt = 1 if(organization_StBankDept == 1)
replace participant_stmungovt = 1 if(organization_INDeptFinInst == 1)
replace participant_stmungovt = 1 if(organization_CADeptFinInst == 1)
replace participant_stmungovt = 1 if(organization_CTstate == 1)
replace participant_stmungovt = 1 if(organization_stbankregs == 1)
replace participant_stmungovt = 1 if(organization_Governor == 1)
replace participant_stmungovt = 1 if(organization_VaBureauFin == 1)
replace participant_stmungovt = 1 if(organization_MSHouse == 1)
 
 
 
gen participant_labor = 0
replace participant_labor = 1 if(organization_labor == 1)
replace participant_labor = 1 if(organization_AFLCIO == 1)
replace participant_labor = 1 if(organization_AFL == 1)
replace participant_labor = 1 if(organization_AFSCME == 1)
replace participant_labor = 1 if(organization_SEIU == 1)
 
 
gen participant_RodginCohen = strpos(individual, "Rodgin") > 0
 
gen participant_bigbank = 0
replace participant_bigbank = 1 if(organization_GoldmanSachs == 1)
replace participant_bigbank = 1 if(organization_JPMorgan == 1)
replace participant_bigbank = 1 if(organization_WellsFargo == 1)
replace participant_bigbank = 1 if(organization_Barclay == 1)
replace participant_bigbank = 1 if(organization_StateStreet == 1)
replace participant_bigbank = 1 if(organization_Prudential == 1)
replace participant_bigbank = 1 if(organization_BOA == 1)
replace participant_bigbank = 1 if(organization_CreditSuisse == 1)
replace participant_bigbank = 1 if(organization_CapitalOne == 1)
replace participant_bigbank = 1 if(organization_MorganStanley == 1)
replace participant_bigbank = 1 if(organization_BNYMellon == 1)
replace participant_bigbank = 1 if(organization_FifthThird == 1)
replace participant_bigbank = 1 if(organization_Citigroup == 1)
replace participant_bigbank = 1 if(organization_MetLife == 1)
replace participant_bigbank = 1 if(organization_HSBC == 1)
replace participant_bigbank = 1 if(organization_TorontoDominion == 1)
replace participant_bigbank = 1 if(organization_SunTrust == 1)
replace participant_bigbank = 1 if(organization_BBT == 1)
replace participant_bigbank = 1 if(organization_RBS == 1)
replace participant_bigbank = 1 if(organization_BNPParibas == 1)
replace participant_bigbank = 1 if(organization_NatWest == 1)
 
** gen year indicators for meetings
 
 
gen year2010 = strpos(date, "2010") > 0
gen year2011 = strpos(date, "2011") > 0
gen year2012 = strpos(date, "2012") > 0
gen year2013 = strpos(date, "2013") > 0
gen year2014 = strpos(date, "2014") > 0
gen year2015 = strpos(date, "2015") > 0
gen year2016 = strpos(date, "2016") > 0
gen year2017 = strpos(date, "2017") > 0
gen year2018 = strpos(date, "2018") > 0
gen year2019 = strpos(date, "2019") > 0
gen year2020 = strpos(date, "2020") > 0
 
gen attendeeindicator = 1
 
***********************************************************
** COLLAPSE PARTICIPANTS DATA INTO MEETINGS DATA
** Key ID variable is the meeting URL
** THEN SAVE NEW FILE
***********************************************************
 
save CollapsedFedMeetings_stata4.dta, replace
collapse (sum) participant_* organization_* year* attendeeindicator datenum phasenum, by(urlmeetingcode)
save CollapsedFedMeetings_stata4.dta, replace
 
 
gen organization_SullCrom01 = 0
replace organization_SullCrom01 = 1 if(organization_SullCrom > 0)
gen organization_ClearyGottlieb01 = 0
replace organization_ClearyGottlieb01 = 1 if(organization_ClearyGottlieb > 0)
gen organization_PerkinsCole01 = 0
replace organization_PerkinsCole01 = 1 if(organization_PerkinsCole > 0)
gen organization_ArnoldPorter01 = 0
replace organization_ArnoldPorter01 = 1 if(organization_ArnoldPorter > 0)
gen organization_CovBurl01 = 0
replace organization_CovBurl01 = 1 if(organization_CovBurl > 0)
gen organization_DebevoisePlimpton01 = 0
replace organization_DebevoisePlimpton01 = 1 if(organization_DebevoisePlimpton > 0)
gen organization_MorrisonFoerster01 = 0
replace organization_MorrisonFoerster01 = 1 if(organization_MorrisonFoerster > 0)
gen organization_PattonBoggs01 = 0
replace organization_PattonBoggs01 = 1 if(organization_PattonBoggs > 0)
gen organization_SidleyAustin01 = 0
replace organization_SidleyAustin01 = 1 if(organization_SidleyAustin > 0)
gen organization_SkaddenArps01 = 0
replace organization_SkaddenArps01 = 1 if(organization_SkaddenArps > 0)
gen organization_SandlerONeill01 = 0
replace organization_SandlerONeill01 = 1 if(organization_SandlerONeill > 0)
gen organization_WilmerHale01 = 0
replace organization_WilmerHale01 = 1 if(organization_WilmerHale > 0)
gen organization_SteptoeJohnson01 = 0
replace organization_SteptoeJohnson01 = 1 if(organization_SteptoeJohnson > 0)
gen organization_ConstantineCannon01 = 0
replace organization_ConstantineCannon01 = 1 if(organization_ConstantineCannon > 0)
gen organization_BrownBrothers01 = 0
replace organization_BrownBrothers01 = 1 if(organization_BrownBrothers > 0)
gen organization_BairdHolm01 = 0
replace organization_BairdHolm01 = 1 if(organization_BairdHolm > 0)
gen organization_OliverWyman01 = 0
replace organization_OliverWyman01 = 1 if(organization_OliverWyman > 0)
gen organization_DavisPolk01 = 0
replace organization_DavisPolk01 = 1 if(organization_DavisPolk > 0)
gen organization_GibsonDunn01 = 0
replace organization_GibsonDunn01 = 1 if(organization_GibsonDunnCrutcher > 0)
gen organization_BarnettSivon01 = 0
replace organization_BarnettSivon01 = 1 if(organization_BarnettSivonNatter > 0)
gen organization_ArmstrongTeasdale01 = 0
replace organization_ArmstrongTeasdale01 = 1 if(organization_ArmstrongTeasdale > 0)
 
gen organization_ABA01 = 0
replace organization_ABA01 = 1 if(organization_ABA > 0)
gen organization_SIFMA01 = 0
replace organization_SIFMA01 = 1 if(organization_SIFMA > 0)
 
gen participant01_lawfirm = 0
replace participant01_lawfirm = 1 if(participant_lawfirm > 0)
gen participant01_bigbank = 0
replace participant01_bigbank = 1 if(participant_bigbank > 0)
gen participant01_Association = 0
replace participant01_Association = 1 if(organization_Association > 0)
gen participant01_Bankers = 0
replace participant01_Bankers = 1 if(organization_Bankers > 0)
gen participant01_BankersAssociation = 0
replace participant01_BankersAssociation = 1 if(organization_BankersAssociation > 0)
gen participant01_labor = 0
replace participant01_labor = 1 if(participant_labor > 0)
gen participant01_reform = 0
replace participant01_reform = 1 if(participant_reform > 0)
gen participant01_stmungovt = 0
replace participant01_stmungovt = 1 if(participant_stmungovt > 0)
 
 
gen yeardummy2010 = 0
replace yeardummy2010 = 1 if(year2010 > 0)
gen yeardummy2011 = 0
replace yeardummy2011 = 1 if(year2011 > 0)
gen yeardummy2012 = 0
replace yeardummy2012 = 1 if(year2012 > 0)
gen yeardummy2013 = 0
replace yeardummy2013 = 1 if(year2013 > 0)
gen yeardummy2014 = 0
replace yeardummy2014 = 1 if(year2014 > 0)
gen yeardummy2015 = 0
replace yeardummy2015 = 1 if(year2015 > 0)
gen yeardummy2016 = 0
replace yeardummy2016 = 1 if(year2016 > 0)
gen yeardummy2017 = 0
replace yeardummy2017 = 1 if(year2017 > 0)
gen yeardummy2018 = 0
replace yeardummy2018 = 1 if(year2018 > 0)
gen yeardummy2019 = 0
replace yeardummy2019 = 1 if(year2019 > 0)
 
gen datenum_counter = datenum/905
 
gen lnpart_bigbank = log(1 + participant_bigbank)
gen lnpart_lawfirm = log(1 + participant_lawfirm)
gen lnpart_BankAssoc = log(1 + organization_BankersAssociation)
gen lndatenum_counter = log(1 + datenum_counter)
gen ln_attendees = log(1 + attendeeindicator)
gen phasebyattendees = phasenum/attendeeindicator
gen lnphasenum = log(phasenum)
gen lnphasebyattendees = log(phasebyattendees)
gen lnpart_SEC = log(1 + organization_SEC)
gen lnpart_OCC = log(1 + organization_OCC)
gen lnpart_FHFA = log(1 + organization_FHFA)
gen lnpart_FAC = log(1 + organization_FAC)
gen lnpart_FRBGov = log(1 + participant_FRBGovernor)
gen lnpart_FRB = log(1 +  organization_FRB)
gen lnpart_FRBank = log(1 + organization_FRBank)
gen lnpart_labor = log(1 + participant_labor)
gen lnpart_reform = log(1 + participant_reform)
gen lnpart_stmungovt = log(1 + participant_stmungovt)
 
** First examine participation of Bankers Associations in meetings **
 
reg lnpart_BankAssoc lnpart_lawfirm lnpart_bigbank yeardummy2011-yeardummy2018 ln_attendees lnphasebyattendees
reg participant01_BankersAssociation participant01_lawfirm participant01_bigbank yeardummy2011-yeardummy2018 ln_attendees lnphasebyattendees
reg lnpart_BankAssoc lnpart_lawfirm lnpart_bigbank yeardummy2011-yeardummy2018 ln_attendees lnphasebyattendees if(participant01_BankersAssociation == 1)
nbreg organization_BankersAssociation participant_lawfirm participant_bigbank yeardummy2011-yeardummy2018 attendeeindicator organization_SEC organization_OCC organization_FHFA organization_FRB organization_FRBank
 
** Next examine law firm participation as the DV **
 
reg lnpart_lawfirm lnpart_BankAssoc lnpart_bigbank yeardummy2011-yeardummy2018 ln_attendees lnphasebyattendees lnpart_SEC lnpart_OCC lnpart_FHFA lnpart_FAC lnpart_FRBGov lnpart_FRB lnpart_FRBank
reg lnpart_lawfirm lnpart_BankAssoc lnpart_bigbank yeardummy2011-yeardummy2018 ln_attendees lnphasebyattendees lnpart_SEC lnpart_OCC lnpart_FHFA lnpart_FAC lnpart_FRBGov lnpart_FRB lnpart_FRBank, robust
nbreg participant_lawfirm organization_BankersAssociation participant_bigbank yeardummy2011-yeardummy2018 attendeeindicator organization_SEC organization_OCC organization_FHFA organization_FAC participant_FRBGovernor organization_FRB organization_FRBank
nbreg participant_lawfirm organization_BankersAssociation participant_bigbank organization_ClearingHouse yeardummy2011-yeardummy2018 attendeeindicator organization_SEC organization_OCC organization_FHFA organization_FAC participant_FRBGovernor organization_FRB organization_FRBank, vce(robust)
 
***********************************************************
** FOR REPLICATION OF PAPER, TABLE 3
** Regs with outreg
***********************************************************
 
reg lnpart_lawfirm lnpart_BankAssoc lnpart_bigbank yeardummy2011-yeardummy2018 ln_attendees lnphasebyattendees lnpart_SEC lnpart_OCC lnpart_FHFA lnpart_FAC lnpart_FRBGov lnpart_FRB lnpart_FRBank, robust
outreg2 using lawyerlobbyregs_replicate.doc, dec(2) noaster addnote(Put your notes here.) tex(frag) append
reg lnpart_lawfirm lnpart_BankAssoc lnpart_bigbank yeardummy2011-yeardummy2018 ln_attendees lnphasebyattendees, robust
outreg2 using lawyerlobbyregs_replicate.doc, dec(2) noaster addnote(Put your notes here.) tex(frag) append
nbreg participant_lawfirm organization_BankersAssociation participant_bigbank organization_ClearingHouse yeardummy2011-yeardummy2018 attendeeindicator organization_SEC organization_OCC organization_FHFA organization_FAC participant_FRBGovernor organization_FRB organization_FRBank, vce(robust)
outreg2 using lawyerlobbyregs_replicate.doc, dec(2) noaster addnote(Put your notes here.) tex(frag) append
nbreg participant_lawfirm organization_BankersAssociation participant_bigbank organization_ClearingHouse yeardummy2011-yeardummy2018 attendeeindicator, vce(robust)
outreg2 using lawyerlobbyregs_replicate.doc, dec(2) noaster addnote(Put your notes here.) tex(frag) append
 
** END OF COMMANDS, SAVE FILE
 
save CollapsedFedMeetings_stata4.dta, replace
